package com.youxin.foundation.db.redis;

import redis.clients.jedis.JedisCommands;

/**
 * 锁redis
 * @author yingde.cao
 *
 */
public interface RedisDistributedLockAble {
	/**
	 * 锁访求
	 * @param key redis key
	 * @param timeoutMillis 超时时间
	 * @param commandable redis 对象
	 */
	public  void lock(String key, long timeoutMillis, JedisCommandsable<? super JedisCommands> commandable);
}
